package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_detail")
public class Detail implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    private BigDecimal detailMoney;

    private LocalDateTime detailDate;

    //0：充值；1：提现；2：退款；3：购物
    private Integer detailOperation;

    //不与表中字段相映射
    @TableField(exist = false)
    private Wallet wallet;


}
